<!--
 * @Author: mhb
 * @Date: 2021-10-08 11:18:41
 * @LastEditTime: 2021-10-28 16:43:06
 * @LastEditors: Please set LastEditors
 * @Description: 点位详情模板表格（word模板转译的html，非手写）
 * @FilePath: \cscec-pms-admin\src\views\quality\measuredAmount\map\components\PointInfoTemplate.vue
-->

<template>
  <div>
    <div style="text-align: center">
      <table cellspacing="0" cellpadding="0" style="border-collapse: collapse; margin: 0 auto; width: 100%">
        <thead>
          <tr style="height: 22.7pt">
            <td
              rowspan="3"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 1.5pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 1.5pt;
                vertical-align: middle;
                width: 7.8%;
              "
            >
              <p style="margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <img
                  src="@/assets/logo.png"
                  width="46"
                  height="46"
                  alt="logo"
                  style="
                    -aw-left-pos: 0pt;
                    -aw-rel-hpos: column;
                    -aw-rel-vpos: paragraph;
                    -aw-top-pos: 0pt;
                    -aw-wrap-type: inline;
                  "
                />
              </p>
            </td>
            <td
              colspan="7"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 1.5pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 1.5pt;
                vertical-align: middle;
              "
            >
              <p style="line-height: 18pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 华文隶书; font-size: 16pt">中国建筑  项目管理表格</span>
              </p>
            </td>
          </tr>
          <tr style="height: 14.2pt">
            <td
              colspan="5"
              rowspan="2"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                vertical-align: middle;
              "
            >
              <p style="line-height: 19pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 14pt">实测实量检查记录表</span>
              </p>
            </td>
            <td
              colspan="2"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 1.5pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                vertical-align: middle;
              "
            >
              <p style="margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">表格编号</span>
              </p>
            </td>
          </tr>
          <tr style="height: 14.2pt">
            <td
              colspan="2"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 1.5pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                vertical-align: middle;
              "
            >
              <p style="margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">CSCEC8XN-EQ-B30611</span>
              </p>
            </td>
          </tr>
          <tr style="height: 1pt">
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 1.5pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 4.65pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 7.8%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">工程名称</span>
              </p>
            </td>
            <td
              colspan="3"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: top;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: justify; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{ datas.projectName }}</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: top;
                width: 8.68%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: justify; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">测量</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">部位</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: top;
                width: 19.34%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: justify; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{ nodeTitle }}</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: top;
                width: 8.6%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: justify; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">实测日期</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 1.5pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 4.65pt;
                vertical-align: top;
                width: 12.22%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: justify; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{ datas.measurementDate }}</span>
              </p>
            </td>
          </tr>
          <tr style="height: 1pt">
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 1.5pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 4.65pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 7.8%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.2pt">点位</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.2pt">编号</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 12.54%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="color: #00b0f0; font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.2pt"
                  >点位</span
                ><span style="color: #00b0f0; font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.2pt"
                  >名称</span
                >
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 17.34%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.3pt">检查</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.3pt">项</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 13.48%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">允许</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">偏差</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 8.68%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">设计</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">值</span>
              </p>
            </td>
            <td
              colspan="2"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 5.03pt;
                vertical-align: middle;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">实测</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">值</span>
              </p>
            </td>
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 0.75pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 1.5pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 4.65pt;
                vertical-align: middle;
                width: 12.22%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -1pt">实测</span
                ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -1pt">结论</span>
              </p>
            </td>
          </tr>
        </thead>
        <tbody>
          <template v-for="(item, index) in datas.mapPoints || []">
            <tr :key="item.mapId" style="height: 1pt">
              <td
                :rowspan="item.checkItems ? item.checkItems.length : 1"
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 1.5pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 4.65pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 7.8%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.2pt">{{
                    item.serialNumber || index + 1
                  }}</span>
                </p>
              </td>
              <td
                :rowspan="item.checkItems ? item.checkItems.length : 1"
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 12.54%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.2pt">{{
                    item.pointName
                  }}</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 17.34%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span
                    v-if="item.record"
                    style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.3pt"
                    >{{
                      item.record && item.record.results[0] && item.record.results[0].checkName
                        ? item.record.results[0].checkName
                        : '/'
                    }}</span
                  >
                  <span v-else style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.3pt">{{
                    item.checkItems && item.checkItems[0] && item.checkItems[0].checkItemName
                      ? item.checkItems[0].checkItemName
                      : '/'
                  }}</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 13.48%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span
                    v-if="item.record && item.record.results[0] && item.record.results[0].judgmentType.code != '2'"
                    style="font-family: 仿宋_GB2312; font-size: 10.5pt"
                    >【{{ item.record.results[0].negativeVal }}，{{ item.record.results[0].positiveVal }}】</span
                  >
                  <span
                    v-else-if="item.checkItems && item.checkItems[0] && item.checkItems[0].judgmentTypeCode != '2'"
                    style="font-family: 仿宋_GB2312; font-size: 10.5pt"
                    >【{{ item.checkItems[0].negativeDeviation }}，{{ item.checkItems[0].positiveDeviation }}】</span
                  >
                  <span v-else>/</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 8.68%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span v-if="item.record" style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{
                    item.checkItems && item.checkItems[0] && item.checkItems[0].judgmentTypeCode == '0'
                      ? item.record.results[0] && item.record.results[0].standardValue
                        ? item.record.results[0].standardValue
                        : '/'
                      : item.record.results[0] && item.record.results[0].designVal
                      ? item.record.results[0].designVal
                      : '/'
                  }}</span>
                  <span v-else style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{
                    item.checkItems && item.checkItems[0] && item.checkItems[0].judgmentTypeCode == '0'
                      ? item.checkItems[0].standardValue || '/'
                      : item.checkItems && item.checkItems[0] && item.checkItems[0].designVal
                      ? item.checkItems[0].designVal
                      : '/'
                  }}</span>
                </p>
              </td>
              <td
                colspan="2"
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <template v-if="item.record && item.record.results[0]">
                    <template v-if="item.record.results[0].judgmentType.code == '4'">
                      <template
                        v-if="item.record.results[0].formulaeValueVO && item.record.results[0].formulaeValueVO.valueNew"
                      >
                        <div
                          v-for="(e, number) in item.record.results[0].formulaeValueVO.valueNew"
                          :key="number"
                          align="center"
                        >
                          <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{ e }}</span>
                        </div>
                      </template>
                      <span v-else>/</span>
                    </template>
                    <span v-else style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{
                      item.record.results[0].value || '/'
                    }}</span>
                  </template>
                  <span v-else style="font-family: 仿宋_GB2312; font-size: 10.5pt">/</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 1.5pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 4.65pt;
                  vertical-align: middle;
                  width: 12.22%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span
                    v-if="item.record && item.record.results[0]"
                    style="font-family: 仿宋_GB2312; font-size: 10.5pt"
                    >{{
                      $isEmpty(item.record.results[0].qualified)
                        ? '未测量'
                        : item.record.results[0].qualified
                        ? '合格'
                        : '不合格'
                    }}</span
                  >
                  <span v-else>/</span>
                </p>
              </td>
            </tr>
            <tr v-for="(i, idx) in getCheckItems(item)" :key="item.mapId + idx" style="height: 1pt">
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 17.34%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.3pt">{{
                    i.checkItemName || '/'
                  }}</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 13.48%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span v-if="i.judgmentTypeCode != '2'" style="font-family: 仿宋_GB2312; font-size: 10.5pt"
                    >【{{ i.negativeDeviation }}，{{ i.positiveDeviation }}】</span
                  >
                  <span v-else style="font-family: 仿宋_GB2312; font-size: 10.5pt">合格/不合格</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                  width: 8.68%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">
                    {{ (i.judgmentTypeCode === '0' ? i.standardValue : i.designVal) || '/' }}
                  </span>
                </p>
              </td>
              <td
                colspan="2"
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 0.75pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 5.03pt;
                  vertical-align: middle;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <template v-if="i.judgmentTypeCode == '4'">
                    <template v-if="i.formulaeValueVO && i.formulaeValueVO.valueNew">
                      <div v-for="(e, number) in i.formulaeValueVO.valueNew" :key="number">
                        <span style="font-family: 仿宋_GB2312; font-size: 10.5pt; letter-spacing: -0.3pt">{{ e }}</span>
                      </div>
                    </template>
                    <span v-else>/</span>
                  </template>
                  <span v-else style="font-family: 仿宋_GB2312; font-size: 10.5pt">{{
                    item.record && item.record.results.length ? item.record.results[idx + 1].value : '/'
                  }}</span>
                </p>
              </td>
              <td
                style="
                  border-bottom-color: #000000;
                  border-bottom-style: solid;
                  border-bottom-width: 0.75pt;
                  border-left-color: #000000;
                  border-left-style: solid;
                  border-left-width: 0.75pt;
                  border-right-color: #000000;
                  border-right-style: solid;
                  border-right-width: 1.5pt;
                  border-top-color: #000000;
                  border-top-style: solid;
                  border-top-width: 0.75pt;
                  padding-left: 5.03pt;
                  padding-right: 4.65pt;
                  vertical-align: middle;
                  width: 12.22%;
                "
              >
                <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                  <span style="font-family: 仿宋_GB2312; font-size: 10.5pt"
                    >{{
                      item.record && item.record.results && item.record.results.length && item.record.results[idx + 1]
                        ? $isEmpty(item.record.results[idx + 1].qualified)
                          ? '未测量'
                          : item.record.results[idx + 1].qualified
                          ? '合格'
                          : '不合格'
                        : '未测量'
                    }}
                  </span>
                </p>
              </td>
            </tr>
          </template>
          <tr style="height: 155.7pt">
            <td
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 1.5pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 1.5pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 0.75pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 4.65pt;
                padding-right: 5.03pt;
                vertical-align: middle;
                width: 7.8%;
              "
            >
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">点</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">&#xa0;</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">位</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">&#xa0;</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">布</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">&#xa0;</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">置</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">&#xa0;</span>
              </p>
              <p style="line-height: 15pt; margin: 0pt; orphans: 0; text-align: center; widows: 0">
                <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">图</span>
              </p>
            </td>
            <td
              colspan="7"
              style="
                border-bottom-color: #000000;
                border-bottom-style: solid;
                border-bottom-width: 1.5pt;
                border-left-color: #000000;
                border-left-style: solid;
                border-left-width: 0.75pt;
                border-right-color: #000000;
                border-right-style: solid;
                border-right-width: 1.5pt;
                border-top-color: #000000;
                border-top-style: solid;
                border-top-width: 0.75pt;
                padding-left: 5.03pt;
                padding-right: 4.65pt;
                vertical-align: middle;
              "
            >
              <p style="line-height: 15pt; margin: 0pt auto; orphans: 0; text-align: center; widows: 0">
                <img :src="picture" style="max-width: 70%; margin: 5pt 0" />
              </p>
            </td>
          </tr>
        </tbody>
        <tr style="height: 0pt">
          <td style="width: 57.45pt; border: none"></td>
          <td style="width: 92.25pt; border: none"></td>
          <td style="width: 127.55pt; border: none"></td>
          <td style="width: 99.15pt; border: none"></td>
          <td style="width: 63.85pt; border: none"></td>
          <td style="width: 142.3pt; border: none"></td>
          <td style="width: 63.25pt; border: none"></td>
          <td style="width: 89.9pt; border: none"></td>
        </tr>
      </table>
    </div>
    <p style="line-height: 19pt; margin: 0pt; orphans: 0; text-align: justify; widows: 0">
      <span style="font-family: 仿宋_GB2312; font-size: 10.5pt">测量人：{{ datas.measurementPersonName }}</span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt"></span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt"> </span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt"> 记录人：{{ datas.measurementPersonName }}</span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt"></span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">  </span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">项目</span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">经</span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">理</span
      ><span style="font-family: 仿宋_GB2312; font-size: 10.5pt">：{{ datas.projectManager }}</span>
    </p>
  </div>
</template>

<script>
export default {
  name: 'PointInfoTemplate',
  props: {
    // 点位图
    picture: String,
    // 责任区域（测量部位）
    nodeTitle: String,
    // 实测实量详情
    datas: {
      type: Object,
      default: () => ({})
    }
  },
  methods: {
    /**
     * 获取检查项列表
     */
    getCheckItems(item) {
      return item.checkItems?.filter((i, num) => num != 0) || []
    }
  }
}
</script>
